#ifndef __MY_SPI_H__
#define __MY_SPI_H__

#include "main.h"
#include "spi.h"
#include "stm32f1xx_hal.h"
#define SPI2_NSS_PIN GPIO_PIN_12
#define SPI2_NSS_PORT GPIOB

void SPI2_Init(void);
void MySPI_Start(void);
void MySPI_Stop(void);
uint8_t MySPI_SwapByte(uint8_t data);
#endif
